/** 
 * Copyright (C), 2010-2012, TIETIAO Software Co.,Ltd. ALL RIGHTS RESERVED. 
 * File name:AttentionLableService.java
 * Version:1.0
 * Date:2011-12-9
 * Description: 关注用户标签Service
 * author:zhijian.zhang
 */
package com.tietiao.service.label;

import java.util.List;

import com.tietiao.dao.model.UserLable;

public interface UserLableService {

	/**
	 * 功能：关注标签
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-9
	 * 
	 * @param userId
	 *            用户ID
	 * @param lableIds
	 *            关注的标签名
	 */
	public void attendUserLables(int userId, String lableName);

	/**
	 * 
	 * 功能：将已关注的标签设为不关注
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-9
	 * @param userId
	 *            用户ID
	 */
	public void dontAttendUserLable(int userId, String lableName);
	
	/**
	 * 
	 * 功能：用户是否已关注过某一标签
	 * @author: whh 
	 * @param userId
	 * @param lableName
	 * @return
	 */
	public boolean isAttendLable(int userId, String lableName);
	/**
	 * 
	 * 功能：获得用户喜欢的标签
	 * @author: whh 
	 * @Date: 2012-1-1
	 *
	 * @param userId 用户ID
	 * @param max 最多查询出多少个
	 * @return
	 */
	public List<UserLable> getUserLables(int userId,int max);
}
